﻿<Window x:Class="ResumeVideo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" 
        xmlns:my="clr-namespace:ResumeVideo" 
        Title="Resume Video Player" Height="465" Width="692" 
        Background="Black" Foreground="White" 
        Icon="/ResumeVideo;component/WMP%2012%2039.ico"
        Closing="Window_Closing" Loaded="Window_Loaded" KeyDown="Window_KeyDown" MouseWheel="Window_MouseWheel" AllowDrop="True" DragEnter="Window_DragEnter" Drop="Window_Drop" MouseDoubleClick="Window_MouseDoubleClick" MouseMove="Window_MouseMove">
    <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
        <MediaElement Name="mediaElement1" MediaEnded="mediaElement1_MediaEnded" Volume="{Binding ElementName=VolumeSlider, Path=Value}"  MouseWheel="Window_MouseWheel" />
        <Grid Name="ControlGrid"  MouseEnter="Grid_MouseEnter" MouseLeave="ControGrid_MouseLeave" AllowDrop="False">
            <Slider 
            Height="24" Margin="12,0,12,31.96" Name="seekBar" 
            Thumb.DragStarted="seekBar_DragStarted" 
            Thumb.DragCompleted="seekBar_DragCompleted" 
            VerticalAlignment="Bottom" ValueChanged="seekBar_ValueChanged" LargeChange="500" SmallChange="50" IsMoveToPointEnabled="True" TickFrequency="120" TickPlacement="TopLeft" >
            	<Slider.Effect>
            		<DropShadowEffect BlurRadius="2" ShadowDepth="2"/>
            	</Slider.Effect>
            </Slider>
            <Button Name="btnStart" Width="30" Height="22" Margin="12,0,0,9" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Row="1" Click="btnStart_Click">
            	<Button.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Button.Effect>
                <Image Name="btnStartImage" Source="/ResumeVideo;component/Play.ico" Width="16" Height="16"/>
            </Button>
            <Button Name="btnStop" Width="30" Height="22" Margin="49,0,0,9" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Row="1" Click="btnStop_Click">
            	<Button.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Button.Effect>
                <Image Name="btnStopImage" Source="/ResumeVideo;component/Stop.ico" Width="16" Height="16"></Image>
            </Button>
            <Button Name="btnOpen" Height="22" Margin="85,0,0,9" VerticalAlignment="Bottom" Grid.Row="1" Click="btnOpen_Click" MouseRightButtonUp="btnOpen_MouseRightButtonUp" HorizontalAlignment="Left" Width="30">
            	<Button.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Button.Effect>
                <Image Name="btnOpenImage" Source="/ResumeVideo;component/Open.ico" Width="16" Height="16" Stretch="None" />
            </Button>
            <Button Name="btnFullScreen" Width="30" Height="22" Margin="121,0,0,9" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Row="1" Click="btnFullScreen_Click" >
            	<Button.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Button.Effect>
                <Image Name="btnFullScreenImage" Source="/ResumeVideo;component/FullScreen.ico" Width="16" Height="16" Stretch="None"/>
            </Button>
            <ComboBox Grid.Row="1" Height="22" Margin="157,0,234,8" Name="cmbPreviousMovies" VerticalAlignment="Bottom" SelectionChanged="cmbPreviousMovies_SelectionChanged">
            	<ComboBox.Effect>
            		<DropShadowEffect BlurRadius="2" ShadowDepth="2"/>
            	</ComboBox.Effect>
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Button Name="btnDelete" Click="btnDelete_Click" CommandParameter="{Binding MovieId}" >
                                <Image Name="btnDeleteImage" Source="/ResumeVideo;component/Delete.ico" Width="8" Height="8" Stretch="None"/>
                            </Button>
                            <TextBlock Text="{Binding Name}"/>
                            <TextBlock Text=" | "/>
                            <TextBlock Text="{Binding LastComputer}"/>
                            <TextBlock Text=" | "/>
                            <TextBlock Text="{Binding Path=LastPositionTime}" />
                        </StackPanel>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <Label Content="00:00:00" Margin="0,0,175.98,6" Name="txtPosition" VerticalAlignment="Bottom" HorizontalAlignment="Right" Foreground="White">
            	<Label.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Label.Effect>
            </Label>
            <Label Content="volume" Margin="0,0,127,6" Name="label1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Foreground="White">
            	<Label.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Label.Effect>
            </Label>
            <Slider Height="23" Name="VolumeSlider" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="111" Maximum="1" SmallChange="0.01" LargeChange="0.1" Value="1"  MouseWheel="Window_MouseWheel" Margin="0,0,12,7" >
            	<Slider.Effect>
            		<DropShadowEffect ShadowDepth="2" BlurRadius="2"/>
            	</Slider.Effect>
            </Slider>
        </Grid>
    </Grid>
</Window>
